import { getAction, deleteAction, putAction, postAction, httpAction } from '@/api/manage'

// base
export const factoryAdd = params => postAction('/factory/add', params)

export const factoryEdit = params => postAction('/factory/edit', params)

export const factoryout = params => deleteAction('/factory/out', params)

export const factoryDelete = params => deleteAction('/factory/delete', params)

// 详情
export const factoryDeviceTypeAdd = params => postAction('/factory/device_type/add', params)

export const factoryDeviceTypeEdit = params => postAction('/factory/device_type/edit', params)

export const factoryDeviceTypeDelete = params => deleteAction('/factory/device_type/delete', params)

// mn
export const addMN = (params) => postAction('/factory/device_mn/add', params)